package com.jcl.cloud.services.crawler.catchnew;

import com.jcl.cloud.services.crawler.catchnew.thread.QcwyFileThread;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.core.task.SimpleAsyncTaskExecutor;
import org.springframework.scheduling.annotation.EnableScheduling;


@EnableDiscoveryClient
@SpringBootApplication
@EnableEurekaClient
@EnableScheduling
public class CatchNewMircoService {

    public static void main(String[] args) {
        SpringApplication.run(CatchNewMircoService.class, args);
        SimpleAsyncTaskExecutor cmdDispatchExecutor = new SimpleAsyncTaskExecutor();
        cmdDispatchExecutor.setDaemon(true);
        cmdDispatchExecutor.execute(new QcwyFileThread());
    }


}
